/**
 * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 **/

.order-detail-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.order-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eaeaea;
}

.order-id {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.order-status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status-pending-payment {
  background-color: #FFF3CD;
  color: #856404;
}

.status-paid {
  background-color: #D4EDDA;
  color: #155724;
}

.status-shipped {
  background-color: #CCE5FF;
  color: #004085;
}

.status-delivered {
  background-color: #D1ECF1;
  color: #0C5460;
}

.status-cancelled {
  background-color: #F8D7DA;
  color: #721C24;
}

.status-finished {
  background-color: #D4EDDA;
  color: #155724;
}

.status-refund-reviewing {
  background-color: #FFF3CD;
  color: #856404;
}

.status-refund-passed {
  background-color: #D1ECF1;
  color: #0C5460;
}

.order-meta {
  margin-top: 0.5rem;
  color: #666;
}

.order-date {
  font-size: 0.9rem;
}

.order-products {
  margin-bottom: 2rem;
}

.order-products-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.order-products-table th,
.order-products-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eaeaea;
}

.order-products-table th {
  background-color: #f9f9f9;
  font-weight: 600;
  color: #333;
}

.product-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.product-name {
  font-weight: 500;
  color: #333;
}

.product-price {
  font-weight: 500;
  color: #e63946;
}

.order-summary {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.order-summary-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #555;
}

.order-total {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eaeaea;
  font-weight: 600;
  font-size: 1.1rem;
}

.back-to-orders {
  display: inline-block;
  margin-top: 2rem;
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s;
}

.back-to-orders:hover {
  background-color: #45a049;
}